<style>
/* **************** INICIO BUSCAR***************** */
																												 /*170*/
.buscador .input{background: #332720 url(http://www.candres.com/include/busc/global.gif) no-repeat left -87px;width:432px;padding:0 4px 0 7px;border:0;height:35px;float:left;line-height:35px;padding-top:2px;}
.buscador .input input{outline:none;border:0;background:transparent;font-size:130%; width:100%;}
.buscador .input input.input-hint{color:#CCC; margin-top:6px;}
.buscador .buscar-en{float:left;margin:2px 4px 0 5px;color: #989898;font-size:95%;line-height:35px;}
.buscador button{cursor:pointer;background:url(http://www.candres.com/include/busc/global.gif) no-repeat right -87px;border:0;width:38px;height:37px;float:left;overflow:hidden; margin-left:0;}
.buscador button:hover{background-position:right -136px;margin:0;padding:0;}
.buscador button:active{background-position:right -173px;margin:0;padding:0;}
.buscador button span{display:block;text-indent:-9999px;margin:0;padding:0;}

.select {background:url(http://www.candres.com/include/busc/global.gif) no-repeat center -87px;float:left;height:37px; width:120px;
font-size:85%;
}
.option{
color:#FFF;font-size:82%;text-align:center; background-color:#CCC;
}

span.select{margin:11px 0 0 0; font-size:100%;line-height:17px; position:absolute;width:86px;height:17px;padding:0 0 0 6px;color:#fff;background: #fff url(http://www.candres.com/include/busc/global.gif) no-repeat -216px -248px;overflow:hidden; text-align:left;border-radius: 4px;!important; bor} 

/* ******************** FIN BUSCAR***************** */
</style>



<script language="javascript">


var selectWidth = "190";


document.write('<style type="text/css">input.styled { display: none; } select.styled { position: relative; width: ' + selectWidth + 'px; opacity: 0; filter: alpha(opacity=0); z-index: 5; } .disabled { opacity: 0.5; filter: alpha(opacity=50); }</style>');

var Custom = {
	init: function() {
		var inputs = document.getElementsByTagName("input"), span = Array(), textnode, option, active;
		
		inputs = document.getElementsByTagName("select");
		for(a = 0; a < inputs.length; a++) {
			if(inputs[a].className == "styled") {
				option = inputs[a].getElementsByTagName("option");
				active = option[0].childNodes[0].nodeValue;
				textnode = document.createTextNode(active);
				for(b = 0; b < option.length; b++) {
					if(option[b].selected == true) {
						textnode = document.createTextNode(option[b].childNodes[0].nodeValue);
					}
				}
				span[a] = document.createElement("span");
				span[a].className = "select";
				span[a].id = "select" + inputs[a].name;
				span[a].appendChild(textnode);
				inputs[a].parentNode.insertBefore(span[a], inputs[a]);
				if(!inputs[a].getAttribute("disabled")) {
					inputs[a].onchange = Custom.choose;
				} else {
					inputs[a].previousSibling.className = inputs[a].previousSibling.className += " disabled";
				}
			}
		}
	},
	choose: function() {
		option = this.getElementsByTagName("option");
		for(d = 0; d < option.length; d++) {
			if(option[d].selected == true) {
				document.getElementById("select" + this.name).childNodes[0].nodeValue = option[d].childNodes[0].nodeValue;
			}
		}
	}
}
window.onload = Custom.init;
</script>



<script language="javascript">
function buscar(str){
	var a = "http://www.candres.com/index.php?site=busc&var=";
	//a = a.concat(str.value);
	//window.parent.location=a;
     //   var web = '<?php //echo $se1; ?>';
        alert(str.value);
}

</script>


<form id="formBuscar" name="bBuscar" class="buscador clrfix" method="post" enctype="multipart/form-data" action="">
  <div class="input">
		<input value="<?php if($_SESSION['idioma']==1)echo 'Enter Search Terms'; else if($_SESSION['idioma']==2)echo 'Buscar'; ?>" autocomplete="on" class="input-hint" name="q" id="busc_f" onClick="value=''"/>
	</div>
   
	<div class="select" > <span class="buscar-en"><?php if($_SESSION['idioma']==1)echo 'in'; else if($_SESSION['idioma']==2)echo 'en'; ?>: </span>
        	
						
            
          <span id="select6" class="select">Candres.com</span><select name="6" class="styled" style="width:90px">
							<option value="1" class="option"><?php if($_SESSION['idioma']==1)echo '&nbsp;&nbsp;All the site'; else if($_SESSION['idioma']==2)echo '&nbsp;Todo el sitio'; ?></option>
							<option <?php if(isset($_SESSION['cu']) && $_SESSION['cu']=='saproductos') echo " selected='selected' "?> value="1" class="option">Productos</option>
							<option <?php if(isset($_SESSION['cu']) && $_SESSION['cu']=='saofertas') echo " selected='selected' "?>value="1" class="option">Ofertas</option>
							<option <?php if(isset($_SESSION['cu']) && ($_SESSION['cu']=='sapedidos'||$_SESSION['cu']=='scpedidos')) echo " selected='selected' "?> value="1" class="option">Pedidos</option>
                            <option <?php if(isset($_SESSION['cu']) && $_SESSION['cu']=='saempleados') echo " selected='selected' "?> value="1" class="option">Empleados</option>
							<option <?php if(isset($_SESSION['cu']) && $_SESSION['cu']=='saclientes') echo " selected='selected' "?>value="1" class="option">Clientes</option>
						</select> 
            
            
            
  	</div>
    
    <button type="submit" title="Buscar" id="bBuscar" name="bBuscar" ><span>Buscar</span></button>
</form>
